package string;

public class SubstringDemo {
    public static void main(String[] args) {
        String str = "www.tedu.com";
        String sub = str.substring(3, 7);
        System.out.println(sub);
        String sub2 = str.substring(3);
        System.out.println(sub2);
    }
}
